<template>
  <div>
    <page-list :x-uri="uri" :custom-components="custom" :x-tabs="tabs" :doactions="doactions" :checkbox-item="false" />
    <el-dialog title="分成比例详情" :visible.sync="visible" width="40%" :close-on-click-modal="false"><examine :datas="row" /></el-dialog>
  </div>
</template>

<script>
import PageList from '@public/template/page_list.vue';
import Status from './components/status';
import Title from '../../components/title.vue';
import Examine from './examine.vue';
export default {
  components: {
    PageList,
    Examine
  },
  inject: ['reload'],
  data() {
    return {
      uri: '/school/admin/split/config/list',
      tabs: [
        {
          title: '机构分成列表',
          uri: '/school/split',
          meta: {
            permission: 'school.split.list'
          }
        }
      ],
      doactions: [{ title: '详情', meta: { permission: 'school.split.detail' }, callback: this.examine }],
      custom: {
        status: Status,
        title: Title
      },
      visible: false,
      row: {}
    };
  },
  methods: {
    examine: function({ row }) {
      this.row = row;
      this.visible = true;
    }
  }
};
</script>
